package com.weapp.system.interceptor;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class FilterInterceptorConfiguration extends WebMvcConfigurationSupport {

  @Override
  public void addInterceptors(InterceptorRegistry registry) {
    registry.addInterceptor(new JWTLoginInterceptor())
      .addPathPatterns("/wx/**")
      .excludePathPatterns("/wx/user/login");
  }


}